package com.calabar.phm.etl.driver.spark.exception;

/**
 * @Author zmc <mingcheng.zhang@cdcalabar.com>
 * @Date 17-6-28 上午9:32
 * @Version v1.0
 * @Des 自定义异常码
 */
public enum ExceptionCodeEnum {

    DRIVER_INIT_EXCEPTION(1001, "驱动初始化异常"),
    DRIVER_CHECKPARAMS_EXCEPTION(1002, "驱动验证接收参数异常"),
    OPERATOR_PARAMS_VALIDATE_EXCEPTION(1003, "算子参数异常"),
    OPERATOR_RUNNING_EXCEPTION(1004, "算子运行异常"),
    OTHER_EXCEPTION(1005, "其它异常");


    private int _code;
    private String _description;

    private ExceptionCodeEnum(int code, String description) {
        this._code = code;
        this._description = description;
    }


    public int get_code() {
        return _code;
    }

    public String get_description() {
        return _description;
    }
}
